package com.lzx.reggie.dto

import com.lzx.reggie.entity.Setmeal
import com.lzx.reggie.entity.SetmealDish


class SetmealDto : Setmeal() {
     var setmealDishes: List<SetmealDish>? = null
     var categoryName: String? = null
    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other !is SetmealDto) return false

        if (setmealDishes != other.setmealDishes) return false
        if (categoryName != other.categoryName) return false

        return true
    }

    override fun hashCode(): Int {
        var result = setmealDishes?.hashCode() ?: 0
        result = 31 * result + (categoryName?.hashCode() ?: 0)
        return result
    }

    override fun toString(): String {
        return "SetmealDto(setmealDishes=$setmealDishes, categoryName=$categoryName)"
    }

}
